package system

import "mycms/model/common/request"

type SearchApiParams struct {
	Path        string `json:"path" form:"path" comment:"API路径"`
	Description string `json:"description" form:"description" comment:"描述"`
	ApiGroup    string `json:"api_group" form:"api_group" comment:"API分组"`
	request.PageInfo
}

type CreateApiParams struct {
	Path        string `json:"path" form:"path" validate:"required" comment:"API路径"`
	Method      string `json:"method" form:"method" validate:"required" comment:"请求方法"`
	ApiGroup    string `json:"api_group" form:"api_group" validate:"required" comment:"API分组"`
	Description string `json:"description" form:"description" comment:"描述"`
}

type UpdateApiParams struct {
	Id          uint   `json:"id" form:"id" validate:"required,numeric" comment:"ID"`
	Path        string `json:"path" form:"path" validate:"required" comment:"API路径"`
	Method      string `json:"method" form:"method" validate:"required" comment:"请求方法"`
	ApiGroup    string `json:"api_group" form:"api_group" validate:"required" comment:"API分组"`
	Description string `json:"description" form:"description" comment:"描述"`
}

type ApisInfoParams struct {
	Id          uint   `json:"id" form:"id" validate:"required,numeric" comment:"ID"`
}

type DelApisParams struct {
	Id          uint   `json:"id" form:"id" validate:"required,numeric" comment:"ID"`
}
